package com.aproj.ws;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.aproj.model.User;
import com.aproj.service.UserLocalServiceUtil;

@Controller
public class UserResource {
	
	@RequestMapping(value="/ws/getUser.json/{email}",method=RequestMethod.GET)
	public @ResponseBody User user(@PathVariable String email, HttpServletRequest request){
		
		return UserLocalServiceUtil.Authenticate(email, "pwd");
	}

}
